package routers

import (
	"VirtualCamera/controllers/game"

	"github.com/gin-gonic/gin"
)

func GameRoutersInit(r *gin.Engine) {
	//middlewares可配置中间件
	adminRouters := r.Group("/game")

	{
		// 获取所有游戏列表
		adminRouters.GET("/gameList", game.GameController{}.GetGameList)
		adminRouters.GET("/:age", game.GameController{}.GetGamesByAge)

		//adminRouters.POST("/regist", admin.RegistController{}.Regist)
		//adminRouters.GET("/getUserInfo", admin.RegistController{}.GetUserInfo)
	}

}

